From: Ian Jackson Date: Tue, 15 May 2018 14:39:03 +0000 (+0100) Subject: docs/parse-support-md: Provide $sectnode->{RealSectNode} X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~108 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=42a558140478f551bd8a38466bfc91fadaf850a1;p=xen.git docs/parse-support-md: Provide $sectnode->{RealSectNode} No functional change yet. Signed-off-by: Ian Jackson Acked-by: Lars Kurth Release-acked-by: Juergen Gross --- diff --git a/docs/parse-support-md b/docs/parse-support-md index 8af3acc2c1..278072f583 100755 --- a/docs/parse-support-md +++ b/docs/parse-support-md @@ -33,6 +33,7 @@ our $toplevel_sectlist = new_sectlist(); # $sectlist->{KEY}{Status}[VI] = absent or markdown content # $sectlist->{KEY}{Children} = a further $sectlist # $sectlist->{KEY}{Key} = KEY +# $sectlist->{KEY}{RealSectNode} = us, or our parent # $sectlist->{KEY}{HasCaveat}[VI] = trueish iff other in a Para # $sectlist->{KEY}{RealInSect} = containing real section in @insections, so # $sectlist->{KEY}{RealInSect}{HasDescription} = VI for some Emph in Para @@ -71,6 +72,7 @@ sub find_current_sectnode () { my $sectnode; my $realinsect; + my $realsectnode; foreach my $s (@insections) { my $sectlist = $sectnode ? $sectnode->{Children} : $toplevel_sectlist; @@ -87,6 +89,8 @@ sub find_current_sectnode () { HasCaveat => [], }; $sectnode = $sectlist->{$key}; + $realsectnode = $sectnode if $s->{Anchor}; + $sectnode->{RealSectNode} = $realsectnode; } die unless $sectnode; return $sectnode;